package tg.app.rj.tslx;

import java.rmi.RemoteException;
import psdi.mbo.MAXTableDomain;
import psdi.mbo.Mbo;
import psdi.mbo.MboConstants;
import psdi.mbo.MboSetRemote;
import psdi.mbo.MboValue;
import psdi.util.MXException;

public class FldFwkzs extends MAXTableDomain
  implements MboConstants
{
  public FldFwkzs(MboValue mbovalue)
  {
    super(mbovalue);
    try
    {
      String strAttrName = getMboValue().getAttributeName().toUpperCase();
      setRelationship("ALNDOMAIN", "value =:" + strAttrName);
      setKeyMap("ALNDOMAIN", new String[] { strAttrName }, 
        new String[] { "value" });
    }
    catch (Exception localException) {
    }
  }

  public void validate() throws MXException, RemoteException {
    super.validate();
  }

  public MboSetRemote getList() throws MXException, RemoteException
  {
    Mbo mbo = super.getMboValue().getMbo();
    String num = mbo.getString("TSDLXNUM");
    if ((num != null) && (!num.equalsIgnoreCase(""))) {
      return mbo.getMboSet("$VALUE", "ALNDOMAIN", 
        "DOMAINID = 'YXYSFL' AND VALUE IN ('01','02','03','04')");
    }
    return mbo.getMboSet("$VALUE", "ALNDOMAIN", "DOMAINID = 'YXYSFL'");
  }
}